package com.design.patterns.structuralModel.observer.service;

public class ConcrereObserver implements Observer {

    // 微信用户名
    private String name;

    public ConcrereObserver(String name) {
        this.name = name;
    }

    @Override
    public void update(String msg) {
        System.out.println(name + "-" + msg);
    }
}
